package com.woniu.immunologicalmechanism.feign;

import com.woniu.common.entity.Message;
import com.woniu.common.entity.ResponseResult;
import com.woniu.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient("user")
public interface UserOpenfeign {
    @PostMapping("/user/findUser")
    public User findUser(@RequestBody int id);

    @RequestMapping("/message/insertMessage")
    public ResponseResult<String> insertMessage(@RequestBody com.woniu.common.entity.Message message);
}
